import requests


def hot():
    # id = 5
    url = 'https://www.meipai.com/home/hot_timeline'
    response = requests.get(url).json()
    data = []
    for each in response['medias']:
        data.append([each['caption'], 'https://www.meipai.com/media/' + str(each['id'])])
    return str(data)


if __name__ == '__main__':
    hot()
